package com.mtsmda.demo.spring.spring_core;

public class HelloWord {

	private String name;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String greeting() {
		if (this.name != null && !this.name.isEmpty()) {
			return "Hello, " + this.name + "!";
		}
		return "Hello!";
	}

}